//package com.leyou.trade.task;
//
//import com.leyou.trade.service.OrderService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//@Component
//public class IntervalClearOrder {
//    final long refreshTime = 300000;
//
//    @Autowired
//    private OrderService orderService;
//
//    @Scheduled(fixedDelay = refreshTime)
//    public void clearOrderInTime(){
//        this.orderService.closeOrder();
//    }
//}
